//
//  SearchOfCell.m
//  HYHoney
//
//  Created by dllo on 16/2/26.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "SearchOfCell.h"
#import "DKNightVersion.h"
@implementation SearchOfCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.content = [[UILabel alloc]init];
        [self.contentView addSubview:self.content];
    }
    return self;
}


- (void)dealloc{

    [_content release];
    [super dealloc];
}



- (void)layoutSubviews{
    
    [super layoutSubviews];
    
    self.content.frame =CGRectMake(10, 0, self.frame.size.width - 20, 70);
    self.content.font = [UIFont boldSystemFontOfSize:16];
    self.content.numberOfLines = 0;
}

-(void)passModel:(ModelForSearch *)model{
    
    self.content.text = model.content;
    self.content.dk_textColorPicker = DKColorWithRGB(0x000000, 0xc6e2ff);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
